window.onload = function () 
{
	//登录状态
	var username = localStorage.getItem("username");
	if(username!=null)
	document.getElementById("login-link").innerHTML =  username ;
	
	//干员选择
	document.getElementById("operator-choose-table-r6-d2").onclick = function () 
	{
		clearAllInfo();
		document.getElementById("operator-choose-table-r6-d2").style.backgroundColor="#eb741b";	
	}
	document.getElementById("operator-choose-table-r6-d8").onclick = function ()
	{
		clearAllInfo();
		document.getElementById("operator-choose-table-r6-d8").style.backgroundColor="#1a87eb";
	}
}

function clearAllInfo()
{
	var list=document.getElementsByTagName("td");
	for(var i=0;i<=65;i++)
	{
		list[i].style.backgroundColor="#121212";
	}
}